// components/dd-swiper/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    isCard: {type: Boolean, value: false},
    DotStyle: {type: Boolean, value: true},
    swiperList: {type: Array, value: []},
  },

  /**
   * 组件的初始数据
   */
  data: {
    cardCur: 0,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClickSwiper(event) {
      const data = event.currentTarget.dataset.operation;
      this.triggerEvent('clickSwiper', data)
    },
    cardSwiper(e) {
      this.setData({
        cardCur: e.detail.current
      })
    },
  },
  lifetimes: {
    attached: function() {
    },
    detached: function() {
      // 在组件实例被从页面节点树移除时执行
    },
  },
})